package com.ljfiction.book.http;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class HttpParameter {

	private List<Map<String, String>> list=new ArrayList<Map<String,String>>();
	private List<Map<String, String>> fileList=new ArrayList<Map<String,String>>();
	public List<Map<String, String>> getList() {
		return list;
	}
	public List<Map<String, String>> getFileList() {
		return fileList;
	}

	public void add(String name,String value){
		Map<String, String> map=new HashMap<String, String>();
		map.put("name", name);
		map.put("value", value);
		list.add(map);
	}
	public void addFile(String name,String filePath){
		Map<String, String> map=new HashMap<String, String>();
		map.put("name", name);
		map.put("path", filePath);
		fileList.add(map);
	}
}
